<?php

class StandardInvoker{
	$responses=array();
	
	public function invoke($method,$params){
		//validate it with def files
		//get filter list
		//go through filters
		//get end-point calling url
		
		//call with fopen or curl and get the return and store it 
		//in the $responses 
		//return the latest index of $response'
	}
	
	public function getResponse($index){
		//return response in the array according to the $index
	}
}

/*
What'll be travel in the JSON-RPC param section
	params=
	[
		{filter:'authenticate',sign:'value',salt:'salt'},
		[
			{filter:'encrypt',method:'RSA'},
			'ddf78dsfs877#E#b@#$&#E!#@VGghvGVGhbYGVGDGSVCdcVDGSADDDFDbcdcCshch'
		]
	];
	
	//params[0] - header.
	//params[1] - payload
	//params[1][0] - header
	//params[1][1] - payload
*/
